@extends('host.common.common')
@section('header')

@stop
@section('body')
        <!-- top_test -->
<div id="top_test"></div>
<!-- web_logo_search -->
<div id="web_logo_search"></div>
<!-- comm_nav -->
<div id="comm_nav"></div>
<div class="com-w">
    <div class="wrapper clearfix">
        <div class="top-navigation">
            <span class="top-bg-img clearfix"></span>
            您当前的位置：
            <a href="{{route('host')}}">首页</a>
            > 行业资讯
        </div>
        <div class="com-info-box w400-box h240-box mr20">
            <?php $imageArticle =
                    \App\B2BProject\Site\ArticleCategory::getArticleCollectionByCategoryName('hyxw')->collectionWithCover()->first(); ?>

            <div class="main-1-image">
                <a href="{{route('industry.details',['hyxw', $imageArticle->id])}}">
                    <img src="{{$imageArticle->cover}}">

                    <div class="text-hover">
                        <p class="">{{$imageArticle->title}}</p>
                    </div>
                </a>
            </div>
        </div>
        <div class="com-info-box w400-box h240-box mr20 border-none">

            <div class="trade-information-title tc f18 b002">
                <a href="{{route('industry.details',['hyxw', $imageArticle->id])}}" class="trade-information-title tc f18 f-red">{{$imageArticle->title}}</a>
            </div>
            <div class="tr-info1-text mt10">
                <p>{!! mb_substr(trim(str_replace('&nbsp;', '', strip_tags($imageArticle->content))),0,100) !!} ...</p>
            </div>
            <div class="tr-info1-list">
                <ul class="info-content-date">
                    @foreach(\App\B2BProject\Site\ArticleCategory::getArticleCollectionByCategoryName('hyxw')->orderBy('created_at', 'desc')->take(4)->get() as $article)
                        <li>
                            <a class="main-li-text" href="{{route('industry.details',['hyxw', $article->id])}}"> <i
                                        class="icon-circle"></i>
                                [行业新闻] {{$article->title}}
                            </a>
                            <span class="li-time">{{date('Y-m-d',strtotime($article->created_at))}}</span>
                        </li>
                    @endforeach
                </ul>
            </div>
        </div>

        <div class="com-info-box w360-box h240-box border-none com-info1">
            <div class="head">
                <div class="text-left">市场动态</div>
                <div class="text-right">
                    <a href="{{route('industry.lister',['scdt'])}}">更多></a>
                </div>
            </div>
            <div class="com-info1-rightbox">
                <div class="clearfix ml20 mt20">
                    <div class="rightbox-image fl">
                        <?php $imageScdt =
                                \App\B2BProject\Site\ArticleCategory::getArticleCollectionByCategoryName('scdt')->orderBy('created_at',
                                        'desc')->collectionWithCover()->first();?>
                        <a href="{{route('industry.details',['scdt', $imageScdt->id])}}">
                            <img src="{{$imageScdt->cover}}"/>
                        </a>
                    </div>
                    <div class="ml10 clearfix fl wb60">
                        <div class="rightbox-title f14 tc fl">
                            <a href="{{route('industry.details',['scdt', $imageScdt->id])}}" class="rightbox-title f14 tc fl">{{$imageScdt->title}}</a>
                        </div>
                        <div class="rightbox-title f12 tl fl lh20 c-999 mt5">{!! mb_substr(strip_tags($imageScdt->content),0,40) !!}
                            ……
                        </div>

                    </div>
                    <div class="clearfix fl">
                        <ul class="info-content-date">

                            @foreach(\App\B2BProject\Site\ArticleCategory::getArticleCollectionByCategoryName('scdt')->orderBy('created_at','desc')->collectionWithCover()->take(3)->get() as $article)
                                <li>
                                    <a class="main-li-text" href="{{route('industry.details',['scdt', $article->id])}}">
                                        <i class="icon-circle"></i>
                                        {{$article->title}}</a>
                                    <span class="li-time">{{date('Y-m-d',strtotime($article->created_at))}}</span>
                                </li>
                            @endforeach
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<div class="com-w mt20">
    <div class="wrapper clearfix">
        <div class="com-info-box w820-box h560-box mr20">
            <div class="head clear">
                <div class="text-left">行业资讯</div>
                <div class="text-right">
                    <a href="{{ route('industry.lister',['hyzx']) }}">更多></a>
                </div>
            </div>

            <div class="w420 mt20 ml20" style="float:left;">
                <div class="h300 video-box">
                    <!-- 视频 -->
                    <?php $imageHyzx =
                            \App\B2BProject\Site\ArticleCategory::getArticleCollectionByCategoryName('hyzx')->collectionWithCover()->first();?>

                    <a href="{{route('industry.details',['hyzx', $imageHyzx->id])}}">
                        <img src="{{$imageHyzx->cover}}" width="300"
                             style="position: relative;width: 100%;height: 100%;"/>
                    </a>
                </div>

                <div class="mt20 h160 oh">
                    <ul class="info-content-date">
                        @foreach(\App\B2BProject\Site\ArticleCategory::getArticleCollectionByCategoryName('hyzx')->orderBy('created_at', 'desc')->skip(7)->take(5)->get() as $article)
                            <li>
                                <a href="{{route('industry.details',['hyzx', $article->id])}}">
                                    <i class="icon-circle"></i>
                                    {{$article->title}}</a>
                                <span class="date-txt">{{ date('Y-m-d', strtotime($article->created_at)) }}</span>
                            </li>
                        @endforeach
                    </ul>
                </div>
            </div>
            <div class="w120 mt20 ml20" style="float:left;">
                <!-- list -->

                @foreach(\App\B2BProject\Site\ArticleCategory::getArticleCollectionByCategoryName('hyzx')->orderBy('created_at','desc')->collectionWithCover()->skip(2)->take(5)->get() as $article)
                    <div class="trade-info-box">
                        <div class="img-box mr20">
                            <a href="{{route('industry.details',['hyzx', $article->id])}}"><img
                                        src="{{$article->cover}}"/></a>
                        </div>
                        <div class="txt-box">
                            <a class="txt-oh"
                               href="{{route('industry.details',['hyzx', $article->id])}}">{{$article->title}}</a>

                            <p>
                                {{substr(strip_tags($article->content),0)}}
                                {{--{{$article->content}}--}}
                            </p>
                        </div>
                        <div class="empty-line"></div>
                    </div>
                @endforeach
            </div>
        </div>
        <div class="trade-info1-right">
            <div class="com-info-box w360-box h270-box border-none com-info1">

                <div class="head">
                    <div class="text-left">产业经济</div>
                    <div class="text-right">
                        <a href="{{route('industry.lister',['cyjj'])}}">更多></a>
                    </div>
                </div>

                <div class="com-info1-rightbox">
                    <div class="clearfix ml20 mt20">
                        <div class="rightbox-image fl">
                            <?php $imageCyjj =
                                    \App\B2BProject\Site\ArticleCategory::getArticleCollectionByCategoryName('cyjj')->orderBy('created_at',
                                            'desc')->collectionWithCover()->first();?>
                            <a href="{{route('industry.details',['cyjj', $imageCyjj->id])}}">
                                <img src="{{$imageCyjj->cover}}"/>
                            </a>
                        </div>
                        <div class="ml10 clearfix fl wb55">
                            <div class="rightbox-title f14 tc fl">
                                <a href="{{route('industry.details',['cyjj', $imageCyjj->id])}}" class="rightbox-title f14 tc fl">{{$imageCyjj->title}}</a>
                            </div>
                            <div class="rightbox-title f12 tl fl lh25 c-999">{!! mb_substr(strip_tags($imageCyjj->content),0,28) !!}
                                ...
                            </div>

                        </div>
                        <div class="clearfix fl">
                            <ul class="info-content-date">

                                @foreach(\App\B2BProject\Site\ArticleCategory::getArticleCollectionByCategoryName('cyjj')->orderBy('created_at','desc')->collectionWithCover()->take(4)->get() as $article)
                                    <li>
                                        <a class="main-li-text"
                                           href="{{route('industry.details',['cyjj', $article->id])}}">
                                            <i class="icon-circle"></i>
                                            [产业经济] {{mb_substr($article->title,0,12)}}
                                        </a>
                                        <span class="li-time">{{date('Y-m-d',strtotime($article->created_at))}}</span>
                                    </li>
                                @endforeach
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
            <div class="com-info-box w360-box h270-box border-none com-info1 mt20">
                <div class="head">
                    <div class="text-left">企业动态</div>
                    <div class="text-right">
                        <a href="{{route('industry.lister',['qydt'])}}">更多></a>
                    </div>
                </div>
                <div class="com-info1-rightbox">
                    <div class="clearfix ml20 mt20">
                        <div class="rightbox-image fl">
                            <?php $imageQydt =
                                    \App\B2BProject\Site\ArticleCategory::getArticleCollectionByCategoryName('qydt')->orderBy('created_at',
                                            'desc')->collectionWithCover()->first();?>
                            <a href="{{route('industry.details',['qydt', $imageQydt->id])}}">
                                <img src="{{$imageQydt->cover}}"/>
                            </a>
                        </div>
                        <div class="ml10 clearfix fl wb60">
                            <div class="rightbox-title f14 tc fl">
                                <a href="{{route('industry.details',['qydt', $imageQydt->id])}}"> {{$imageQydt->title}}</a>
                               </div>
                            <div class="rightbox-title f12 tl fl lh20 c-999 mt10">{!! mb_substr(strip_tags($imageQydt->content),0,32) !!}...</div>

                        </div>
                        <div class="clearfix fl">
                            <ul class="info-content-date">
                                @foreach(\App\B2BProject\Site\ArticleCategory::getArticleCollectionByCategoryName('qydt')->orderBy('created_at','desc')->collectionWithCover()->take(4)->get() as $article)
                                    <li>
                                        <a class="main-li-text"
                                           href="{{route('industry.details',['qydt', $article->id])}}">
                                            <i class="icon-circle"></i>
                                            [企业动态] {{mb_substr($article->title,0,12)}}
                                        </a>
                                        <span class="li-time">{{date('Y-m-d',strtotime($article->created_at))}}</span>
                                    </li>
                                @endforeach
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<div class="com-w mt20" style="display: none;">
    <div class="wrapper clearfix">
        <div class="w400-box h310-box mr20 fl com-info-box">
            <div class="head clear">
                <div class="text-left">咖啡豆国际期货行情</div>
                <div class="text-right">
                    <a href="#">更多></a>
                </div>
            </div>
            <div id="internationtrade" class="canvas-graph" style="display: none">
            </div>
        </div>
        <div class="w400-box h310-box mr20 fl com-info-box">
            <div class="head clear">
                <div class="text-left">咖啡豆国内期货行情</div>
                <div class="text-right">
                    <a href="#">更多></a>
                </div>
            </div>
            <div id="domestictrade" class="canvas-graph" style="display: none">
            </div>
        </div>
        <div class="w360-box h310-box fl com-info-box">
            <div class="head clear">
                <div class="text-left">价格行情</div>
                <div class="text-right">
                    <a href="{{route('industry.lister',['jghq'])}}">更多></a>
                </div>
            </div>
            <div class="">
                <div class="main-graph" id="main-price" style="display: none">请选用google或IE10以上版本游览器</div>
            </div>
        </div>
    </div>
</div>
<div class="com-w mt20">
    <div class="wrapper clearfix">
        <div class="w400-box h440-box mr20 fl com-info-box">
            <div class="head clear">
                <div class="text-left">咖啡豆</div>
                <div class="text-right">
                    <a href="{{route('industry.lister',['kfd'])}}">更多></a>
                </div>
            </div>
            <div class="coffee-bean-main">
                <div class="coffee-b-img w360-box h200-box com-info-box mt20 ml20">
                    <?php $imageKfd =
                            \App\B2BProject\Site\ArticleCategory::getArticleCollectionByCategoryName('kfd')->orderBy('created_at',
                                    'desc')->collectionWithCover()->first();?>
                    <a href="{{route('industry.details',['kfd', $imageKfd->id])}}">
                        <img src="{{$imageKfd->cover}}">

                        <div class="text-hover">
                            <p class="f16">{{mb_substr($imageKfd->title,0,16)}}……</p>
                        </div>
                    </a>
                </div>
                <div class="clearfix fl ml20 w360-box">
                    <ul class="info-content-date">
                        @foreach(\App\B2BProject\Site\ArticleCategory::getArticleCollectionByCategoryName('kfd')->orderBy('created_at','desc')->collectionWithCover()->take(6)->get() as $article)
                            <li>
                                <a class="main-li-text" href="{{route('industry.details',['kfd', $article->id])}}">
                                    <i class="icon-circle"></i>
                                    [咖啡豆] {{$article->title}}
                                </a>
                                <span class="li-time">{{date('Y-m-d',strtotime($article->created_at))}}</span>
                            </li>
                        @endforeach
                    </ul>
                </div>
            </div>
        </div>
        <div class="w400-box h440-box mr20 fl com-info-box">
            <div class="head clear">
                <div class="text-left">咖啡经营</div>
                <div class="text-right">

                    <a href="{{route('industry.lister',['kfjj'])}}">更多></a>
                </div>
            </div>
            <div class="coffee-bean-main">
                <div class="coffee-b-img w360-box h200-box com-info-box mt20 ml20">
                    <?php $imageKfjy =
                            \App\B2BProject\Site\ArticleCategory::getArticleCollectionByCategoryName('kfjy')->orderBy('created_at',
                                    'desc')->collectionWithCover()->first();?>
                    <a href="{{route('industry.details',['kfjy', $imageKfjy->id])}}">
                        <img src="{{$imageKfjy->cover}}"/>

                        <div class="text-hover">
                            <p class="f16">{{mb_substr($imageKfd->title,0,16)}}……</p>
                        </div>
                    </a>
                </div>
                <div class="clearfix fl ml20 w360-box">
                    <ul class="info-content-date">
                        @foreach(\App\B2BProject\Site\ArticleCategory::getArticleCollectionByCategoryName('kfd')->orderBy('created_at','desc')->collectionWithCover()->take(6)->get() as $article)
                            <li>
                                <a class="main-li-text" href="javascript:void(0)">
                                    <i class="icon-circle"></i>
                                    [咖啡经营] {{$article->title}}
                                </a>
                                <span class="li-time">{{date('Y-m-d',strtotime($article->created_at))}}</span>
                            </li>
                        @endforeach
                    </ul>
                </div>
            </div>
        </div>
        <div class="w360-box h440-box fl com-info-box">
            <div class="head clear">
                <div class="text-left">技术分享</div>
                <div class="text-right">
                    <a href="{{route('industry.lister',['jsfx'])}}">更多></a>
                </div>
            </div>
            <div class="clearfix fl w385-box ml15 mt20 ">
                @foreach(\App\B2BProject\Site\ArticleCategory::getArticleCollectionByCategoryName('jsfx')->orderBy('created_at','desc')->collectionWithCover()->take(4)->get() as $article)
                    <div class="clearfix trade-information1 mb10 mr10 w325-box">
                        <div class="trade-i-img mb12 fl">
                            <a href="{{route('industry.details',['jsfx', $article->id])}}">
                                <img src="{{$article->cover}}"></a>
                        </div>
                        <div class="trade-i-text mb12 fl ml15 wb60">
                            <div class="i-text-title f14 c-333">
                                <a href="{{route('industry.details',['jsfx', $article->id])}}">
                                    {{$article->title}}
                                </a>
                               </div>
                            <div class="c-999 fl lh22 text">{{ mb_substr(trim(str_replace('&nbsp;', '', strip_tags($article->content))), 0, 30) }}...
                            </div>
                        </div>
                    </div>
                @endforeach
            </div>
        </div>
    </div>
</div>
<div class="com-w mt20">
    <div class="wrapper clearfix">

        <div class="com-info-box w1200 h430-box mr10">
            <div class="w380 hbb oh" style="float:left;" id="tab-nav-2">
                <div class="head-tab">
                    <span class="item current">国内展会</span>
                    <span class="item">国际展会</span>
                </div>

                <div class="ml10 h370 oh">
                    <ul class="info-content-date">

                        @foreach(\App\B2BProject\Site\ArticleCategory::getArticleCollectionByCategoryName('gnzh')->orderBy('created_at','desc')->collectionWithCover()->take(12)->get() as $article)
                            <li>

                                <a href="{{route('industry.details',['gnzh', $article->id])}}">
                                    <i class="icon-circle"></i>
                                    {{$article->title}}</a>
                                <span class="date-txt">{{date('Y-m-d',strtotime($article->created_at))}}</span>
                            </li>
                        @endforeach
                    </ul>

                    <ul class="info-content-date" style="display: none">

                        @foreach(\App\B2BProject\Site\ArticleCategory::getArticleCollectionByCategoryName('gjzh')->orderBy('created_at','desc')->collectionWithCover()->take(12)->get() as $article)
                            <li>

                                <a href="{{route('industry.details',['gjzh', $article->id])}}">
                                    <i class="icon-circle"></i>
                                    {{$article->title}}</a>
                                <span class="date-txt">{{date('Y-m-d',strtotime($article->created_at))}}</span>
                            </li>
                        @endforeach

                    </ul>
                </div>

            </div>

            <div class="w820-box clearfix fl mt10">
                <div class="exhibit1-img-box fl ">
                    <a class="link-img">
                        <img src="/assets/b2b/css/images/exhibition1.jpg"/>
                    </a>
                </div>
                <div class="exhibit1-img-box fl">
                    <a class="link-img">
                        <img src="/assets/b2b/css/images/exhibition2.jpg"/>
                    </a>
                </div>
                <div class="exhibit1-img-box fl">
                    <a class="link-img">
                        <img src="/assets/b2b/css/images/exhibition3.jpg"/>
                    </a>
                </div>
                <div class="exhibit1-img-box fl">
                    <a class="link-img">
                        <img src="/assets/b2b/css/images/exhibition4.jpg"/>
                    </a>
                </div>
                <div class="exhibit1-img-box fl">
                    <a class="link-img">
                        <img src="/assets/b2b/css/images/exhibition5.jpg"/>
                    </a>
                </div>
                <div class="exhibit1-img-box fl">
                    <a class="link-img">
                        <img src="/assets/b2b/css/images/exhibition6.jpg"/>
                    </a>
                </div>
                <div class="exhibit1-img-box fl">
                    <a class="link-img">
                        <img src="/assets/b2b/css/images/exhibition7.jpg"/>
                    </a>
                </div>
                <div class="exhibit1-img-box fl">
                    <a class="link-img">
                        <img src="/assets/b2b/css/images/exhibition8.jpg"/>
                    </a>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- foot_nav -->
<div id="foot_nav"></div>
<div id="bottom_main"></div>
<!-- JS -->

<script src="/assets/b2b/js/libs/jquery-ui.min.js"></script>
<script src="/assets/b2b/js/libs/jquery.validate.min.js"></script>
<script src="/assets/b2b/js/libs/messages_zh.js"></script>
<script src="/assets/b2b/js/libs/additional-methods.min.js"></script>

<script src="/assets/b2b/js/libs/page/common.plugin.js"></script>

<script type="text/javascript">
    $(function() {

        commTemplUtil.initPage();

        $.commNavTabs2($("#tab-nav-1").find(".tab-head"),
                $("#tab-nav-1").find(".tab-supply-ul"),
                "active");

        $.commNavTabs2($("#tab-nav-2").find(".item"),
                $("#tab-nav-2").find(".info-content-date"),
                "current");


        // 设置头部导航栏
        commTemplUtil.setHeadCommNav(7);


    });
</script>

@stop

